Integrand size = 18, antiderivative size = 103 \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=\frac {-b-2 c x}{2 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}+\frac {3 c (b+2 c x)}{\left (b^2-4 a c\right )^2 \left (a+b x+c x^2\right )}-\frac {12 c^2 \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{5/2}} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 101, normalized size of antiderivative = 0.98, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {1368, 628, 632, 212} \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=-\frac {12 c^2 \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{5/2}}+\frac {3 c (b+2 c x)}{\left (b^2-4 a c\right )^2 \left (a+b x+c x^2\right )}-\frac {b+2 c x}{2 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2} \]
[In]
[Out]
Rule 212
Rule 628
Rule 632
Rule 1368
Rubi steps \begin{align*} \text {integral}& = \int \frac {1}{\left (a+b x+c x^2\right )^3} \, dx \\ & = -\frac {b+2 c x}{2 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {(3 c) \int \frac {1}{\left (a+b x+c x^2\right )^2} \, dx}{b^2-4 a c} \\ & = -\frac {b+2 c x}{2 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}+\frac {3 c (b+2 c x)}{\left (b^2-4 a c\right )^2 \left (a+b x+c x^2\right )}+\frac {\left (6 c^2\right ) \int \frac {1}{a+b x+c x^2} \, dx}{\left (b^2-4 a c\right )^2} \\ & = -\frac {b+2 c x}{2 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}+\frac {3 c (b+2 c x)}{\left (b^2-4 a c\right )^2 \left (a+b x+c x^2\right )}-\frac {\left (12 c^2\right ) \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x\right )}{\left (b^2-4 a c\right )^2} \\ & = -\frac {b+2 c x}{2 \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}+\frac {3 c (b+2 c x)}{\left (b^2-4 a c\right )^2 \left (a+b x+c x^2\right )}-\frac {12 c^2 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{5/2}} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 97, normalized size of antiderivative = 0.94 \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=\frac {-\frac {(b+2 c x) \left (b^2-6 b c x-2 c \left (5 a+3 c x^2\right )\right )}{(a+x (b+c x))^2}+\frac {24 c^2 \arctan \left (\frac {b+2 c x}{\sqrt {-b^2+4 a c}}\right )}{\sqrt {-b^2+4 a c}}}{2 \left (b^2-4 a c\right )^2} \]
[In]
[Out]
Time = 0.09 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.13
method | result | size |
default | \(\frac {2 c x +b}{2 \left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )^{2}}+\frac {3 c \left (\frac {2 c x +b}{\left (4 a c -b^{2}\right ) \left (c \,x^{2}+b x +a \right )}+\frac {4 c \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right )}{\left (4 a c -b^{2}\right )^{\frac {3}{2}}}\right )}{4 a c -b^{2}}\) | \(116\) |
risch | \(\frac {\frac {6 c^{3} x^{3}}{16 a^{2} c^{2}-8 a \,b^{2} c +b^{4}}+\frac {9 b \,c^{2} x^{2}}{16 a^{2} c^{2}-8 a \,b^{2} c +b^{4}}+\frac {2 \left (5 a c +b^{2}\right ) c x}{16 a^{2} c^{2}-8 a \,b^{2} c +b^{4}}+\frac {b \left (10 a c -b^{2}\right )}{32 a^{2} c^{2}-16 a \,b^{2} c +2 b^{4}}}{\left (c \,x^{2}+b x +a \right )^{2}}-\frac {6 c^{2} \ln \left (\left (32 a^{2} c^{3}-16 b^{2} a \,c^{2}+2 b^{4} c \right ) x +\left (-4 a c +b^{2}\right )^{\frac {5}{2}}+16 a^{2} b \,c^{2}-8 a \,b^{3} c +b^{5}\right )}{\left (-4 a c +b^{2}\right )^{\frac {5}{2}}}+\frac {6 c^{2} \ln \left (\left (-32 a^{2} c^{3}+16 b^{2} a \,c^{2}-2 b^{4} c \right ) x +\left (-4 a c +b^{2}\right )^{\frac {5}{2}}-16 a^{2} b \,c^{2}+8 a \,b^{3} c -b^{5}\right )}{\left (-4 a c +b^{2}\right )^{\frac {5}{2}}}\) | \(288\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 382 vs. \(2 (95) = 190\).
Time = 0.26 (sec) , antiderivative size = 785, normalized size of antiderivative = 7.62 \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=\left [-\frac {b^{5} - 14 \, a b^{3} c + 40 \, a^{2} b c^{2} - 12 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )} x^{3} - 18 \, {\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} x^{2} - 12 \, {\left (c^{4} x^{4} + 2 \, b c^{3} x^{3} + 2 \, a b c^{2} x + a^{2} c^{2} + {\left (b^{2} c^{2} + 2 \, a c^{3}\right )} x^{2}\right )} \sqrt {b^{2} - 4 \, a c} \log \left (\frac {2 \, c^{2} x^{2} + 2 \, b c x + b^{2} - 2 \, a c - \sqrt {b^{2} - 4 \, a c} {\left (2 \, c x + b\right )}}{c x^{2} + b x + a}\right ) - 4 \, {\left (b^{4} c + a b^{2} c^{2} - 20 \, a^{2} c^{3}\right )} x}{2 \, {\left (a^{2} b^{6} - 12 \, a^{3} b^{4} c + 48 \, a^{4} b^{2} c^{2} - 64 \, a^{5} c^{3} + {\left (b^{6} c^{2} - 12 \, a b^{4} c^{3} + 48 \, a^{2} b^{2} c^{4} - 64 \, a^{3} c^{5}\right )} x^{4} + 2 \, {\left (b^{7} c - 12 \, a b^{5} c^{2} + 48 \, a^{2} b^{3} c^{3} - 64 \, a^{3} b c^{4}\right )} x^{3} + {\left (b^{8} - 10 \, a b^{6} c + 24 \, a^{2} b^{4} c^{2} + 32 \, a^{3} b^{2} c^{3} - 128 \, a^{4} c^{4}\right )} x^{2} + 2 \, {\left (a b^{7} - 12 \, a^{2} b^{5} c + 48 \, a^{3} b^{3} c^{2} - 64 \, a^{4} b c^{3}\right )} x\right )}}, -\frac {b^{5} - 14 \, a b^{3} c + 40 \, a^{2} b c^{2} - 12 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )} x^{3} - 18 \, {\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} x^{2} + 24 \, {\left (c^{4} x^{4} + 2 \, b c^{3} x^{3} + 2 \, a b c^{2} x + a^{2} c^{2} + {\left (b^{2} c^{2} + 2 \, a c^{3}\right )} x^{2}\right )} \sqrt {-b^{2} + 4 \, a c} \arctan \left (-\frac {\sqrt {-b^{2} + 4 \, a c} {\left (2 \, c x + b\right )}}{b^{2} - 4 \, a c}\right ) - 4 \, {\left (b^{4} c + a b^{2} c^{2} - 20 \, a^{2} c^{3}\right )} x}{2 \, {\left (a^{2} b^{6} - 12 \, a^{3} b^{4} c + 48 \, a^{4} b^{2} c^{2} - 64 \, a^{5} c^{3} + {\left (b^{6} c^{2} - 12 \, a b^{4} c^{3} + 48 \, a^{2} b^{2} c^{4} - 64 \, a^{3} c^{5}\right )} x^{4} + 2 \, {\left (b^{7} c - 12 \, a b^{5} c^{2} + 48 \, a^{2} b^{3} c^{3} - 64 \, a^{3} b c^{4}\right )} x^{3} + {\left (b^{8} - 10 \, a b^{6} c + 24 \, a^{2} b^{4} c^{2} + 32 \, a^{3} b^{2} c^{3} - 128 \, a^{4} c^{4}\right )} x^{2} + 2 \, {\left (a b^{7} - 12 \, a^{2} b^{5} c + 48 \, a^{3} b^{3} c^{2} - 64 \, a^{4} b c^{3}\right )} x\right )}}\right ] \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 474 vs. \(2 (95) = 190\).
Time = 0.70 (sec) , antiderivative size = 474, normalized size of antiderivative = 4.60 \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=- 6 c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} \log {\left (x + \frac {- 384 a^{3} c^{5} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} + 288 a^{2} b^{2} c^{4} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} - 72 a b^{4} c^{3} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} + 6 b^{6} c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} + 6 b c^{2}}{12 c^{3}} \right )} + 6 c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} \log {\left (x + \frac {384 a^{3} c^{5} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} - 288 a^{2} b^{2} c^{4} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} + 72 a b^{4} c^{3} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} - 6 b^{6} c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{5}}} + 6 b c^{2}}{12 c^{3}} \right )} + \frac {10 a b c - b^{3} + 18 b c^{2} x^{2} + 12 c^{3} x^{3} + x \left (20 a c^{2} + 4 b^{2} c\right )}{32 a^{4} c^{2} - 16 a^{3} b^{2} c + 2 a^{2} b^{4} + x^{4} \cdot \left (32 a^{2} c^{4} - 16 a b^{2} c^{3} + 2 b^{4} c^{2}\right ) + x^{3} \cdot \left (64 a^{2} b c^{3} - 32 a b^{3} c^{2} + 4 b^{5} c\right ) + x^{2} \cdot \left (64 a^{3} c^{3} - 12 a b^{4} c + 2 b^{6}\right ) + x \left (64 a^{3} b c^{2} - 32 a^{2} b^{3} c + 4 a b^{5}\right )} \]
[In]
[Out]
Exception generated. \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.32 \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=\frac {12 \, c^{2} \arctan \left (\frac {2 \, c x + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{{\left (b^{4} - 8 \, a b^{2} c + 16 \, a^{2} c^{2}\right )} \sqrt {-b^{2} + 4 \, a c}} + \frac {12 \, c^{3} x^{3} + 18 \, b c^{2} x^{2} + 4 \, b^{2} c x + 20 \, a c^{2} x - b^{3} + 10 \, a b c}{2 \, {\left (b^{4} - 8 \, a b^{2} c + 16 \, a^{2} c^{2}\right )} {\left (c x^{2} + b x + a\right )}^{2}} \]
[In]
[Out]
Time = 8.49 (sec) , antiderivative size = 285, normalized size of antiderivative = 2.77 \[ \int \frac {1}{\left (c+\frac {a}{x^2}+\frac {b}{x}\right )^3 x^6} \, dx=\frac {\frac {6\,c^3\,x^3}{16\,a^2\,c^2-8\,a\,b^2\,c+b^4}-\frac {b^3-10\,a\,b\,c}{2\,\left (16\,a^2\,c^2-8\,a\,b^2\,c+b^4\right )}+\frac {9\,b\,c^2\,x^2}{16\,a^2\,c^2-8\,a\,b^2\,c+b^4}+\frac {2\,c\,x\,\left (b^2+5\,a\,c\right )}{16\,a^2\,c^2-8\,a\,b^2\,c+b^4}}{x^2\,\left (b^2+2\,a\,c\right )+a^2+c^2\,x^4+2\,a\,b\,x+2\,b\,c\,x^3}+\frac {12\,c^2\,\mathrm {atan}\left (\frac {\left (\frac {12\,c^3\,x}{{\left (4\,a\,c-b^2\right )}^{5/2}}+\frac {6\,c^2\,\left (16\,a^2\,b\,c^2-8\,a\,b^3\,c+b^5\right )}{{\left (4\,a\,c-b^2\right )}^{5/2}\,\left (16\,a^2\,c^2-8\,a\,b^2\,c+b^4\right )}\right )\,\left (16\,a^2\,c^2-8\,a\,b^2\,c+b^4\right )}{6\,c^2}\right )}{{\left (4\,a\,c-b^2\right )}^{5/2}} \]
[In]
[Out]